<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="sms.news.dao.CategoryDAO"%>
<%@page import="sms.news.bean.CategoryBean"%>
<%@page import="sms.news.bean.NewsBean"%>
<%@page import="sms.news.dao.NewsDao"%>
<%@page import="java.util.*" %>
<html>
<head>
<title>Send SMS Free :: Nhac Chuong :: Java Game :: Hinh Nen :: Ket ban :: Xo So :: Bong Da</title>
		<META NAME="description"
			content="SMS.vn website hàng đầu tại Việt nam cung cấp dịch vụ nhắn tin cho điện thoại di động, nhắn tin SMS miễn phí, tải nhạc chuông, java game, hình nền, logo, kết quả xổ số, kết quả bóng đá, cài đặt GPRS, nhắn tin kết bạn,..">
		<META NAME="keywords" content="nhắn tin, tin nhắn, nhan tin, SMS, ringtone, logo, picture, picture message, java game, game, mobile, wireless, gsm, gsm modem, cdma, cdma modem, gprs, cài đặt gprs">
		<META NAME="ROBOTS" CONTENT="ALL">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<link href="include/style.css" rel="stylesheet" type="text/css">
</head>
<body marginheight="0" topmargin="0"><center>
	<table width="1000" border="0" cellspacing="0" cellpadding="0">
	  <jsp:include page="include/top.jsp" />
	  <tr>
		<td height="3"></td>
	  </tr>
	  <tr>
	<td>
	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td width="198" valign="top">
		 <jsp:include page="include/left.jsp" />
		</td>
	<td width="3">&nbsp;</td>
	<td width="799" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td>
				<jsp:include page="include/menu.jsp" />
			</td>
		  </tr>
		  <tr>
			<td height="6"></td>
		  </tr>
		  <tr>
			<td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
				  <tr valign="top">
					<td   height="84">
						 	<embed height="84" align="top"  width="263" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="images/banner-niit.swf"/>									
					</td>
					<td width="3" ></td>
					<td  height="84">
							<embed height="84" align="top"  width="263" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="images/banner-GPRS.swf"/>									
					</td>
					<td width="3"></td>
					<td width="263" height="84" ><img src="images/banner-QC1.gif"></td>
					<td width="4"></td>
				  </tr>
				</table>
			 </td>
		  </tr>
		  <tr>
			<td height="6"></td>
		  </tr>
		   <tr>
			<td>
				<table width="100%" border="0" cellspacing="0"
				cellpadding="0">
				<tr>
					<td valign="top">
						<table width="100%" border="0" cellspacing="0"
							cellpadding="0">
							<tr>
								<td valign="top">
									<table width="100%" border="0" cellspacing="0"
										cellpadding="0">
										<tr>
											<td>
												<table width="100%" border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td width="5" bgcolor="#FF6600"
															height="25">&nbsp;
															
														</td>
														<td width="5">&nbsp;
															
														</td>
														<td class="tieudecon" width="50">
															<a class="tieudecon"
																href="listNews.jsp"> Tin tức</a>
														</td>
														<td width="15" align="center">
															<img src="images/icontieudetintuc.gif">
														</td>
														<td class="tieudecon"></td>
													</tr>
												</table>
											</td>
										</tr>
										<%
											NewsDao newDao = new NewsDao();
											List<NewsBean> newsList = newDao.getNews(1, 5);
											List<NewsBean> newsRelList = newDao.getNews(6, 15);
											for (int i = 0; i < newsList.size(); i++) {
												NewsBean news = newsList.get(i);
										%>
										<tr>
											<td height="10"></td>
										</tr>
										<tr>
											<td>
												<table width="100%" border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td width="20">&nbsp;
															
														</td>
														<td width="120">
															<table width="100%" border="0"
																cellspacing="1" cellpadding="0"
																bgcolor="#5B8A2D">
																<tr>
																	<td width="120" height="120">
																		<img width="120" height="120"
																			src="http://202.92.4.15:15000/<%=news.getImage()%>" border="0">
																	</td>
																</tr>
															</table>
														</td>
														<td width="10">&nbsp;
															
														</td>
														<td valign="top">
															<table width="100%" border="0"
																cellspacing="0" cellpadding="0">
																<tr>
																	<td align="left" height="25">
																		<a
																			href="viewNew.jsp?id=<%=news.getId()%>"
																			class="tieudetin"><%=news.getTitle()%>
																		</a>
																	</td>
																</tr>
																<tr>
																	<td align="left" class="guiSDT">
																		<%=news.getCreateDate()%>
																	</td>
																</tr>
																<tr>
																	<td>
																		<table width="100%" border="0"
																			cellspacing="0" cellpadding="0">
																			<tr>
																				<td align="justify"
																					class="noidungtin">
																					<%=news.getDescription()%>
																				</td>
																				<td width="10">&nbsp;
																					
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td height="10"></td>
										</tr>
										<tr>
											<td background="images/gachchan.gif"
												height="1"></td>
										</tr>
										<%
										}
										%>
										<tr>
											<td>
												<table width="100%" border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td colspan="3">&nbsp;
															
														</td>
													</tr>
													<tr>
														<td width="10">&nbsp;
															
														</td>
														<td align="left" class="maso" height="20"
															width="90">
															<b>Các tin khác</b>
														</td>
														<td>
															<table width="100%" border="0"
																cellspacing="0" cellpadding="0">
																<tr>
																	<td height="14"></td>
																</tr>
																<tr>
																	<td height="1" width="453"></td>
																</tr>
																<tr>
																	<td height="5"></td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td>
												<table width="100%" border="0"
													cellspacing="0" cellpadding="0">
													<%
															for (int i = 0; i < newsRelList.size(); i++) {
															NewsBean newsRel = newsRelList.get(i);
													%>
													<tr>
														<td width="7%" align="center" valign="top"
															style="padding-top:6px ">
															<img src="images/icon5.gif">
														</td>
														<td width="93%" height="20">
															<a
																href="viewNew.jsp?id=<%=newsRel.getId()%>"
																class="linktininet"><%=newsRel.getTitle()%>
															</a>
														</td>
													</tr>
													<%
													}
													%>
												</table>
											</td>
										</tr>
									</table>
								</td>
								<td width="4"></td>
								
							</tr>
						</table>
					</td>

					<td width="4"></td>
					
				</tr>
			</table>
			</td>
		  </tr>
		</table>
		</td>
  </tr>
</table>
	
</td>
	</tr>

 <tr>
<td height="6"></td>
 </tr>
 <tr>
<td height="1" bgcolor="c1d0e5"></td>
 </tr>
 <tr>
<td height="4"><br></td>
 </tr>
 <tr>
 <jsp:include page="include/footer.jsp" />
  </tr>
</table>
</center>
</body>
</html>


























